import pyhk

#define test function 
def funk1():
    print "Hotkey pressed: Lcontrol 7"    

#create pyhk class instance    
hot = pyhk.pyhk()

#add hotkey
hot.addHotkey(['Lcontrol','7'],funk1)

#start looking for hotkey. Loop is ended with CTRL Shift Q
hot.start()

#add several hotkeys to the same function
hot.addHotkey(['Lcontrol','8'],funk1)

#remove hotkey Lcontrol 7
hot.removeHotkey(['Lcontrol','7'])

#change exit hotkey,
#default is CTRL Shift Q and will be used if no EndHotkey is set
hot.setEndHotkey(['Lshift','Q'])

#start looking for hotkey
hot.start()
